package com.mall.b2c.service.impl;

import com.mall.b2c.dao.StoreDao;
import com.mall.b2c.domain.store.StoreDomain;
import com.mall.b2c.service.StoreService;
import com.mall.common.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Created by Misun on 2016/12/28.
 */
@Service
@Transactional(readOnly=true)
public class StoreServiceImpl extends BaseServiceImpl<StoreDomain, Long> implements StoreService {
    @Resource
    public void setBaseDao(StoreDao storeDao) {
        super.setBaseDao(storeDao);
    }

    @Override
    public StoreDomain getDefaultStore() {
        return get("isDefault", true);
    }
}
